﻿using System;
using System.Runtime.InteropServices;

namespace Vtron.LEDCorrective.Domain.LEDSender
{
    /// <summary>
    /// 墙体集合
    /// </summary>
    /// <remarks>
    /// struct _scp_walls_t
    /// {
    /// 	u_int32_t			wallNum;				/*墙个数*/
    /// 	SCP_WALL_t		wall[0];				/*墙信息*/
    /// }PACKED;
    /// typedef struct _scp_walls_t
    /// </remarks>
    [Serializable]
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct SCP_WALLS_T
    {
        /// <summary>
        /// 墙个数
        /// </summary>
        public UInt32 wallNum;

        /// 墙信息
        /// </summary>
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
        public SCP_WALL_T[] wall;
    }
}
